package com.example.cunwan_hd.Mapper;

import com.example.cunwan_hd.Pojo.Chdata;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface DataMapper {
 @Select("INSERT INTO data (data) VALUES (#{a})")
    void  in(String a);
 @Select("SELECT * FROM data ORDER BY RAND() LIMIT 1;")
   Map<String,Object> get();



}
